Fixed exception in plugins that failed to load