NativeBitmapFactory: fix a strange NPE