Fixed crashes in kstat related plugins.