fix error catching
Fix problem with messages with a to address not in identities

This can happen if an identity is deleted while there are messages in the
inbox to that identity.