Prevent selection changed on invalid profile.

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