Fixes issue where rax role masking was not taking header state into account when traversing paths along with overly prioritizing the role failure