Fixed client accidentally registering twice and a bug in deleting local notifications after being read.