Fix compilation issue with assertions disabled