Fixes issue #377, where a source cannot generate a new codename if their

collection is deleted by the journalist while they are still logged in.