Update code path for NDEBUG

If NDEBUG is set, that assert is dropped and the compiler is
displease that result may not be set.