Avoid compiling code that requires assertions if assertions are disabled.  Fixes compiler warnings.