fix a issue that doesn't check the nil when get all errors for WhenAll function