Fix coredump when no plugins are loaded