Fix for issue #722

This should fix issue #722 - stack overflow when saving a bndrun editor.