out-of-bounds string access

... when parsing  ='foo'#  with no character following.

Change-Id: Id65fce721cb47a4d3c947c677323bdcaa2ce957f