Fixes NullPointerException when no properties available on the
objectType