Ensure solution doesn't get created if vote creation fails

Task #178189