Fix filtering criterion when updating contacts from message.