show warning for multiple usage also if the reference is not persisted yet
copied from #7706:
when the new reference to a persisted and linked media object is not yet saved no warning is shown. Is there a chance to show the warning also if there is a volatile reference and additionally at least one persistent reference in the DB? Probably this holds for all data types.