Fix xcf closing Krita in case of parsing errors
Before if xcf import plugin encountered any problems
it closed Krita (using exit() function call) without
any consideration what's going on outside of xcf.
This commit disables closing/crashing Krita by xcf
and provides basic error handling.
After this commit, xcf tests should pass and xcf files
should be opened correctly, as before.