Update xmlloader.cpp

Fixed crash in case of parameters errors