Fixed NullPointerException with OpenJDK.

Please see https://github.com/gosu-lang/gosu/issues/88 for details.