Fixed a bug where a plugin crashed at startup caused script engine to fail