[BUG #8315] Fixed Sinon script error.