CB-6373: Make doNotCallSpies more resilient to errors
CB-6373: Make doNotCallSpies more resilient to errors

This ensures that they cause test failures, even when a JSON exception is thrown
while logging the error.

apache/cordova-mobile-spec,polyvi/xface-mobile-spec,polyvi/xface-mobile-spec,corimf/cordova-mobile-spec,polyvi/xface-mobile-spec,corimf/cordova-mobile-spec,corimf/cordova-mobile-spec,ollie314/cordova-mobile-spec,corimf/cordova-mobile-spec,apache/cordova-mobile-spec,apache/cordova-mobile-spec,ollie314/cordova-mobile-spec,ollie314/cordova-mobile-spec,apache/cordova-mobile-spec,corimf/cordova-mobile-spec,ollie314/cordova-mobile-spec,apache/cordova-mobile-spec,ollie314/cordova-mobile-spec