Fix bad exception handling in zinc_analysis_cache