Fix for a division by zero issue when migrating and empty db

Problem was that the legacy node store reader read one too many records so
whereas zero total nodes was reported, one was read and reportProgress
broke with division by zero (... / totalEntities).
Merge pull request #1943 from tinwelint/2.1-migrate-empty-db

Fix for a division by zero issue when migrating and empty db