DeepGuard: A Framework for Safeguarding Autonomous Driving Systems from Inconsistent Behavior