Fix NPE in on plugin disable.