Skip a redundant check

Spotted by Joona

No functional change.