don't crash on null strings
Merge branch 'master' of https://github.com/andreasgal/j2me.js