Uncertainty-Aware Perception-Based Control for Autonomous Racing