Fix commit 7b8e652a97.

That commit was turning an ASSERT into a if (...) return;
But it didn't invert the condition and thus triggered when it wasn't
supposed to and didn't trigger when it was supposed to. This commit
inverts the condition.