Fixed undefined indexes for ill records in hook_populate_pseudo_entity()