avoid problem with subobjects on empty pojo