carrierroute: avoid out-of-bounds access when resetting opts