Do not attempt to use $context['get_message']() when it doesn't exist

This resolves the issue where a guest trying to access a thread in a
non-guest-visible forum would only see the background image instead of
being prompted to log in.

Apparently, SMF doesn't define $context['get_message']() under those
conditions, and the null function call results in host function
termination in PHP. Huh.