fix getMimeFromMedia in MediaBox