In `bp_get_message_thread_view_link()`, check that thread ID exists before attempting to get a link to it. Fixes debug notices when a message thread is deleted before notifications are marked as read.

git-svn-id: https://buddypress.svn.wordpress.org/trunk@8617 cdf35c40-ae34-48e0-9cc9-0c9da1808c22