Fix user page view - url error

Error 500 when username in url is invalid.