Fix Promise.all false positive (due to element in a document)