Avoid a "constant variable guards dead code" warning from coverity

Fixes CID 752028