Fixed Expensive Assert logic.

The assert was only executed if EXPENSIVE_ASSERT is false.