Improve robustness of code against corrupted configurations
Perform extra checks on the existence of QDomElement attributes and on the correctness of their conversion from QString to int.
This also prevents a crash if it is not possible to find the builtin tool associated to the triggered quick tool (see !230 (comment 85181))