Fixed Ajax.activeRequestCount glitch.

Ajax.activeRequestCount sometimes went to -1 therefore breaking our automation. I changed all conditions to count with this issue.

And filed a bug.

If you want to check it for yourself, add a vm condition on latest downstream build, open console in browser and type Ajax.activeRequestCount (immediately after adding) ...