unbreak automatic focusing of invalid field in phone home setup
unbreak automatic focusing of invalid field in phone home setup

In addition to fixing it we're trying not to focus first invalid
element if another invalid element is already focused. This sadly,
doesn't work on IE8, seemingly because at form submit time focus is
already on next button.

Change-Id: I38d11934817a6a41fdc361e5822f03158959ed8e
Reviewed-on: http://review.couchbase.org/11793
Reviewed-by: Steve Yen <ef850f73f7832052d3c6d9b5ddd3a1716d9a57f1@gmail.com>
Tested-by: Aliaksey Kandratsenka <340b8e09ca65cd3fc686427fcfed17e87eaf61e2@gmail.com>

nimishzynga/ns_server,pavel-blagodov/ns_server,membase/ns_server,mschoch/ns_server,ceejatec/ns_server,t3rm1n4l/ns_server,mschoch/ns_server,mschoch/ns_server,mschoch/ns_server,nimishzynga/ns_server,t3rm1n4l/ns_server,pavel-blagodov/ns_server,daverigby/ns_server,t3rm1n4l/ns_server,ceejatec/ns_server,daverigby/ns_server,ceejatec/ns_server,nimishzynga/ns_server,daverigby/ns_server,membase/ns_server,ceejatec/ns_server,ceejatec/ns_server,mschoch/ns_server,pavel-blagodov/ns_server,membase/ns_server,membase/ns_server,ceejatec/ns_server,vzasade/ns_server,vzasade/ns_server,daverigby/ns_server,membase/ns_server,mschoch/ns_server,nimishzynga/ns_server,membase/ns_server,vzasade/ns_server,nimishzynga/ns_server,t3rm1n4l/ns_server,vzasade/ns_server,pavel-blagodov/ns_server,daverigby/ns_server,nimishzynga/ns_server,t3rm1n4l/ns_server