Fixed behavior in browser when used with mocha.js version 1.9.0

There is a problem with defining nextTick function when you use when.js in browser together with Mocha.js 1.9.0

I've just added additional check for existence of method nextTick in process object. 
If doesn't change any logic, but fixes the problem.