fix(autofill): prevent using the DOMelement conatins method

Related to: CAM-2783