fix #all with promises resolving with undefined