NullPointerException in emulator

It cause null pointer exception in emulators and prevent correct initialization in supported emulators. With the fix, the engine is initialized (Android 4.0.2 ARM Emulator)