Add a method to compare media types without the Charset

And also don't NPE when parsing a null media type,