Fixes NPE when using ObjectType.getField with null parameter.