Handle failure to set lexer and mime type gracefully