Improve error handling in DumpRenderTree2 scripts

Change-Id: Idba4acc22dd037a001ea5c05cbd6a29292f6de2c
2 files changed