Bugfix: coredump in user-agent whitelist

If a user-agent whitelist is set to do a reverse dns lookup but there is
no resolver configured, the coredump will happen.

Signed-off-by: Paul Yang <paulyang.inf@gmail.com>
Merge remote-tracking branch 'upstream/master'