Redirect to error404 when user not found.

Closes #3459.
Merge pull request #3465 from rwjblue/handle-missing-user

Redirect to error404 when user not found.