According to the ticket:
JQUERY.ACTIVE IS NOT DECREMENTED ON COMPLETION OF AJAX REQUEST IF AN EXCEPTION OCCURS IN ANY DEFERRED.DONE/FAIL CALLBACKS
So $.active is the right way to check the number of active connections. It just highlights that some ajax requests are failed when $.active remains not equal to zero.