fix failure condition when writing .pngs

Change-Id: Ic7bb022cc5988aba9750cd357386e588e51df8f5
Reviewed-on: https://skia-review.googlesource.com/c/177005
Reviewed-by: Mike Klein <mtklein@google.com>
1 file changed