Correctly update highlighted words when selected message changes.