Remove the "is-this-a-promise" check in `when`, using `defer().resolve(promise)` instead.