Fixed crash in EditBox::limitTextWidth (first part of #21)