fix updating the media status after a file was deleted in the admin.

Before this fix the media was not unpublished after the last file was deleted.