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).