Fix bug with undefined user-agent from some internet bots