Fixes a bug where if the user agent is not provided in the request and bot/spider filtering is requested, the middleware would crash.
Fixes a bug where if the user agent is not provided in the request and bot/spider filtering is requested, the middleware would crash.