Repairs 'pageownerunavailable" error when trying to access messages inbox

...x (updated patch)

Checks if user is logged in before making it the messages page owner