Solid “not sure”. I have only ever compiled games for development of which I have watched the compiled game logs and still see errors within those logs.
A dumb as it sounds, you could do a validated get for your widget references before you attempt to set visibilities. Could create a comment around those validated gets to make reference to this mystery. Maybe over time you/we will figure this out…