Fix bug in promise chain.

The function called in a then() should explicitly return something, ESPECIALLY
when it is executing something that returns a promise!