Update MimeTypes.java

added catch for IllegalArgumentException