Bug #1588287: fix invalid assertion for `1,2` in debug builds.

Will backport
3 files changed