fix issue with $.when() not returning a Deferred.