Fix inverted queue asserts

Looks like a few assertions were reversed in b378ed5692.