Fix another case of returning a deferred where it should be a promise.