[master/rhel7-branch] Fix EOF error that occurs if user input required in x3270. (#1171135)