Fix warning induced by assert() in release build