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

Fixes gh-1894
Closes gh-1915