Don't throw an error if behind a reverse proxy

We're running WordPress behind a reverse proxy, so assuming that the domain pattern matched on line 9 was throwing an error for us.