Fixed crash when reading malformed plugins.

Error message now gets displayed in the LOOT GUI. Fixes #269.