[chromedriver] Use instanceof instead of typeof to check if value is an object.

BUG=chromedriver:1276

Review URL: https://codereview.chromium.org/1499013002

Cr-Commit-Position: refs/heads/master@{#363412}
1 file changed