Fixed a bug in export_risk

This is a leftover bug from when we removed the RiskCalculation object. Discovered by Catalina.