Fixed NullPointerException with the graphics device.

A little bugfix that stopped the program before the GameWindow popped up.