Fix compilation issue with assertion disabled