Avoid to run into a crash when disk formatting fails

If there is a disk that can't be formatted, code would
crash as it expects a UUID to be returned. Simply try
formatting it again next time.