Fix for crash if there is no text and a user presses an alignment or tab button.