Fix reloading plugins.

Change-Id: I4fc2cb960c4f812d12e1199e4389a02c6c7ae246
Reviewed-on: http://gerrit.dmdirc.com/2628
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager