Add identities to our list of identities only after we try and add it to the identity manager.
Add identities to our list of identities only after we try and add it to the identity manager.

This fixes issue 3877

Change-Id: Ic1d355e9132d9a679b6b4a8eec9b96d798e54295
Reviewed-on: http://gerrit.dmdirc.com/1226
Reviewed-by: Chris Smith <711c73f64afdce07b7e38039a96d2224209e9a6c@dmdirc.com>
Automatic-Compile: DMDirc Local Commits <fd7610eb81751244add0a62da2de7da51cfdce47@googlemail.com>

ShaneMcC/DMDirc-Client,csmith/DMDirc,csmith/DMDirc,greboid/DMDirc,greboid/DMDirc,csmith/DMDirc,ShaneMcC/DMDirc-Client,DMDirc/DMDirc,greboid/DMDirc,csmith/DMDirc,ShaneMcC/DMDirc-Client,greboid/DMDirc,DMDirc/DMDirc,DMDirc/DMDirc,ShaneMcC/DMDirc-Client,DMDirc/DMDirc