if a table to process has 0 records, this caused stop with an
error. this is ok if running a single task only, but if
mor task are provided, subsequent task will be skipped.
Change-Id: I03b312aa815bfc8b75bf5b058313d8b5de0ab205
(cherry picked from commit f43d2cba7b)