[Bug 37120] PVS-Studio Error: Equivalent branches of if operator