added check for outofboundsexception in preparser
Merge https://github.com/srwareham/SLogo