Fix segfault and optimize case when robot file cannot be loaded

Merge request reports

Loading