Fixes bug in findElementsByName()
Merge pull request #559 from ainsej/fix-findelementsbyname

Fixes bug in findElementsByName()