Ensure class is initialised before doing things with it.

Change-Id: Ib72e845e71bb08ca1e95784732d8f177723fc68f
Reviewed-on: http://gerrit.dmdirc.com/3634
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Chris Smith <chris@dmdirc.com>