Fixing race condition when default storage account is not defined