Add Utils.getMainDocumentElement for Firefox driver

When the document is SVG instead of HTML the eventlistener for the
unload event needs to be added to documentElement instead of body.
This new function returns the corresponding element.

CLA signed