fix(core): keep assumptions checked in release builds (#8592)