the CHECK() macro resets result, so an error code from an earlier view could be erased if the last view loaded had no errors. (cherry picked from commit 7e73660206)
7e73660206