[Scene] Added null checks to ui operations