fix always TRUE if() in qmgmt (#3590), found by PREFAST (windows static analysis)