Fix unmapped reads in sequence dictionary

This should fix the issue that @fnothaft described in an email; the test in e53ac85 fails in the same way (a NoSuchElementException); the changes in f47aa0c makes this test pass.