#272 fixed: call reader.readEntries till it return non-empty array
Merge pull request #273 from termi/issue-272

#272 fixed: call reader.readEntries till it return non-empty array