handle generated form lists without eof marker

This was needed to get erl_selenium working.