Added null check in StateManager.SwitchScreen()

Debug screen switching allows to switch to a null screen (press a
Function key that is not assigned to a screen), causing the game to
appear frozen (nothing is being updated, last screen is visible until
switch to a valid screen). This update disallows switching to a null
screen, regardless of how it is passed to StateManager.SwitchScreen()