fix: flushList needs to be checked for empty().
fix: flushList needs to be checked for empty().

Signed-off-by: Vinay Y S <d17670f349e3e89f2b06d7c02c3a4f7338bb9ee0@vys.in>

zbase/ep-engine,zbase/ep-engine,zbase/ep-engine,zbase/ep-engine,zbase/ep-engine