Fix to handling of last lines in RiText.createLines