to return undef when reaching file end

otherwise while(next_aln) loops forever.
Merge pull request #64 from yschensandiego/patch-2

return undef when reaching file end to avoid infinite loop