Add assertion upon too many ajaxStop's.

This is should have helped in #3564.
Merge pull request #3566 from rjackson/add_assertion_for_ajax_testing

Add assertion upon too many ajaxStop's.