Fix StringScanner#[] to return nil for missing match.

This was causing a bug running our stringscanner implmentation in
javascript as `undefined` was slipping into the lexer/parser from this
method.