fix the case if an assigned media_id will be delete from p3media library