UCT/BASE: Add assertion that invoked am_id is within range.
UCT/BASE: Add assertion that invoked am_id is within range.

sergsagal1/ucx_rocm,sergsagal1/ucx_rocm,sergsagal1/ucx_rocm,shssf/ucx,shssf/ucx,shssf/ucx