Fix automate.py --dry-run output.

git-svn-id: http://chromiumembedded.googlecode.com/svn/trunk@1497 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
Fix a crash when closing an off-screen browser with no references (issue #1121).

git-svn-id: http://chromiumembedded.googlecode.com/svn/trunk@1500 5089003a-bbd8-11dd-ad1f-f1f9622dbc98