Bug 914478 - Fix checking for error in setElemTryCache. (r=jandem)