fixed bug where removing contact may crash program

Ignore-this: 3a9381936c6c3cf0e4406e73a65809ee

darcs-hash:20140105170548-c21fe-210ad56f08c80e78484026d3b7c9849733c83966