[ticket/12583] Redirect only on non-empty $message

PHPBB3-12583