TS-2679 Change asserts to debug asserts