DB-771 fix fencepost error in assert