Fixes bug in findElementsByName()

Calling .equals with charSequences is in general undefined, and produces the wrong result.
Updated to use String.contentEquals()

Submitted on behalf of a third-party: Facebook