Deferred: Fix $.when with resolved deferred and progress callbacks

Fixes gh-1894