Update Driver.php

Added fix from this issue: https://github.com/sebastianbergmann/phpunit-selenium/issues/262