Bug - disabling UI button before calling eventsystem.currentselectedgameobject yields null gameobject

Bug - disabling UI button before calling eventsystem.currentselectedgameobject yields null gameobject

with PlayToDevice not working yet this was a bug that was a pain to find.