Fix error on empty user-agent