Multi promise reolution still resolves if the promise array is empty