Fix calling lexer.at with index = -1

Authored by ematirov on Jul 8 2017, 7:11 PM.