Fixed Invalid Profile Requests

I added an invalid profile template and call it whenever a user requests
a profile for an invalid user a user outside his/her network. I removed
the logic that was previously supposed to handle this because it didn't
work (invalid users produced 500 errors).