Issue #2848029 by mbovan, chr.fritsch: Prevent duplicate revisions by checking whether a host entity is already saved