In messages_format_notifications(), declare variables early, to avoid PHP notices.

Fixes #5736

Props wolfhoundjesse

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