fix error #40

The error was caused because the ajaxGetDisplayHelpState in profile/view
did not check if the user was logged in or not. Now the function checks
if the user is logged or not and when it is not a xml error response
is sent.