More robust check for validate_probablities().