Coverity CID 1444950: Control flow issues