packaging: setup: fixed uninstall files handling

- don't fail if we have empty uninstall file during cleanup
- avoid to write an empty uninstall file while aborting setup

Change-Id: Icc0135799f939327ec90adeafba67d47002c800a
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>