Add mechanism to check validity of stored environment pointers in ui::input::environment.