Fixed auto redirection on profile.php when viewing the messages of users.