Fix bug introduced in r16011 with link to new message from diary entry.