prevent infinte loop on 2.0 branch

See https://github.com/WoltLab/WCF/pull/1751

I failed to rebase the branch