Detecting and Mitigating System-Level Anomalies of Vision-Based Controllers