fix FilePair.hasNextElement() bug

when filepair has only one block, FilePair.hasNextElement() can throw
NPE