The first bullet point refers to a Forbes article that I think puts the advice in context. It's not so much "be nice," as it is "don't be nasty."
It's quite possible to simultaneously be honest about a toxic work environment and to do so as a professional.