Fix EZP-22032: don't create an empty ezmedia row

eZMediaType was creating the ezmedia persistent object even if no media file was selected.

# TODO
- [x] Check that editing a new version without uploading a media object won't remove the ezmedia row used by the previous version(s)