Fixes a bug causing inputs without a name attribute to be selected as relevant inputs