fix log init crash when external storage is unavailable