[egs] Fix inconseqential input-checking bug in Swbd example script (#1886)