Pretty print XML when saving JSON. Refs #18747.
Use session id parameter in save XML request if the file is not found by http session id.