* single file compilation: fix a crash if user selects a wrong target

git-svn-id: https://svn.code.sf.net/p/codeblocks/code/trunk@9637 2a5c6006-c6dd-42ca-98ab-0921f2732cef