Fixes to WebDriver::submitForm

Fixes two issues in the WebDriver::submitForm method:

(1) Inputs with type="password" were not being filled in.
(2) Added check that $el exists before calling getTagName() (without this the test suite would end in a fatal error)
Merge pull request #875 from pcairns/1.8

Fixes to WebDriver::submitForm