Fix bug due to missing remote media when try to remove it