use the fulfilled value from a chained promise

dojo/Deferred#resolve does not unwrap promises so we need to resolve using the
fulfilled value rather than the promise itself.

fixes #93