Issue #464: reset a stub inside its callback makes sinon fail