IB/rxe: Add a runtime check in alloc_index()