error_mapper: Make sure it's safe to use "c" before using it.

This was breaking subreddit.reddit.com -> reddit.com/r/subreddit
redirects because `c` was not registered at the point that the redirect
was generated.