#4653 if a text field is empty, getText returns null instead of an empty string