Fixing NPE when pojo has getters with no associated field.