Assessing a dog’s temperament can be a high-stakes game. Get it wrong in a police dog, and you have a dangerous liability.