Fix pygment lexer 500 errors when an alias is used instead of a name.