Fix for populating an entity in case only a relation is present.