- Add safety check for None formatted_response in debug output - Add debug logging when litellm fallback fails