Split out validation functionality from MimeTypeBuilder::get into own method.