Bug 988341 - Convert code before switching Task.jsm to use Promise.jsm. r=mak