Fixed a 500 error on the charting print view.