fix bug in hmm model file checker

I really, really, *really* wish I could say that was the first time I'd
removed elements of a list while I was iterating over 'em.