[IPSEC]: Avoid undefined shift operation when testing algorithm ID