changed hasAttachedMedia, when media is empty