Issue #2304343 by blainelang: Fixed PHP notice when saving an entity that has attached private files but is not affected by group content access.