Add the filter to wp_redirect earlier

Otherwise it will never actually be called.

See #136