PIM-3434: throw exception when media file does not exist