This should fix Android 4.0 jQuery.when tests issues. (cherry-picked from 0065e1f3e3021fc2bcb32e915177498bca034b34) Closes gh-2159