Ignore input elements with neither a name nor an id and refactor the script
Some web pages have input fields without name and id. This can't be filled, so ignore them. Otherwise, the user would get messages about caching data in a page where he entered no data.