Make is_fullscreen() safer.