Fix download promises resolving prematurely, out-of-sync with dojo/request

Fixes theintern/intern#299.