Update ReflectMjAPI.java

Removed a potential NPE (this can occur when a class contains a null mjBattery object)