Remove uneeded slicing of element

The "*/*" provider has been removed. This is therefore not needed anymore and leads to unexpected bugs.

Please notice that this is only relevant for master.
Merge pull request #11367 from owncloud/removeIsMimeSupported

Remove uneeded slicing of element