Fix wrong test: boolean variable is never negative

This has been spotted by clang++.
Merge remote-tracking branch 'github/build-bot-2.1.x' into bleeding-edge-2.1.x
2014.11.05-18.00