FIX stability in HMMs

ValueErrors occur when there is 0 or nan in the covars of the data, or an
infinity in stat['trans'].