Fix some bugs that slipped through

i.e. a crash on x86images caused by calling validate_layout(), and a crash in scriptelement caused by indexing .name in a string.

Merge request reports

Loading