Adding checks for ArgumentError when constructing with a null GraphicsDevice.