fixed defects in graph cuts

@iglesias @tklein23 @hushell 
Fixed new defects reported by Coverity Scan.
Let's remove this one. The constructor of `CMapInferImpl` already takes care of it.