[BUGFIX] Storage Object: Media type is not updated if file name changed
This changes an issue with the Resource Storage Object which might
contain a media type not matching the actual file when setFilename()
has been called to update the object.
Releases: master, 3.0