Do not save an empty ID after uploading to glance failed