Updates in httpagentparser module broke code in django_badbrowser

Just one line needs to be fixed

    if type(user_agent) == dict: