Fixed an issue in MIME type parsing that would cause it to fail whenever the MIME type had at least one parameter: it attempted to call asInstanceOf (without a type parameter) on an instance of String, which is impossible - strings cannot be cast to instances of Nothing.