Fix suspicous hasOneUse() check, found by PVS Studio (PR12357).