The preinst script dumps the databases only in upgrade mode, while the postinst script loading the databases does not have such a condition. Hence it will fail if the previous version was removed.