KAZOO-2029: Now removing the media document or reverting it to the previous state when a file upload fails.