Code for finding a form without a name field and a id field using the action field was too loose and could give false positives. Added a check on the presence of a namefield or an id field and only use the action field when both are not persent.