[#744] Ensure domain is not None before building regex
[#744] Test for allowed domains including NoneTypes
Merge pull request #745 from crlane/cl/offsite-middleware-bugfix

Cl/offsite middleware bugfix