Fixed crash if user hit enter without entering text