Fix camera null pointer on emulator