Fix to handle the input name changing after initialising the page

Only read the name of an input control on the 'onChange', in case the control was initialised with a different value from the current value.