Fix wr error handling when there is a parse or load error
Fix wr error handling when there is a parse or load error

TBR=nduca

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

sahiljain/catapult,catapult-project/catapult,SummerLW/Perf-Insight-Report,catapult-project/catapult,scottmcmaster/catapult,zeptonaut/catapult,catapult-project/catapult-csm,catapult-project/catapult-csm,catapult-project/catapult,SummerLW/Perf-Insight-Report,sahiljain/catapult,benschmaus/catapult,benschmaus/catapult,SummerLW/Perf-Insight-Report,catapult-project/catapult,SummerLW/Perf-Insight-Report,benschmaus/catapult,SummerLW/Perf-Insight-Report,catapult-project/catapult-csm,sahiljain/catapult,zeptonaut/catapult,modulexcite/catapult,0x90sled/catapult,catapult-project/catapult,sahiljain/catapult,benschmaus/catapult,benschmaus/catapult,modulexcite/catapult,catapult-project/catapult-csm,SummerLW/Perf-Insight-Report,sahiljain/catapult,catapult-project/catapult-csm,0x90sled/catapult,catapult-project/catapult,zeptonaut/catapult,benschmaus/catapult,catapult-project/catapult-csm,sahiljain/catapult,0x90sled/catapult,scottmcmaster/catapult,catapult-project/catapult-csm,catapult-project/catapult,scottmcmaster/catapult,benschmaus/catapult,modulexcite/catapult