downgrade user account 500 to 404

when the user for a user id does not exist
Merge pull request #4407 from dimagi/downgrade-500-to-404

downgrade user account 500 to 404