Remove unnecessary condition in the query of updating an unsent message.