fixing segfault when trying to go into fullscreen mode. This came from trying to use an invalid (old) monitor handle.