Widget gets corrupted if device battery is removed while uninstalling it.
*** This patch is just a temporary fix. See [Remarks] section. ***
[Issue#] WGL-580
[Problem] Uninstallation is broken if battery is removed when uninstalling.
[Cause] Db is cleaned up but files are still present.
[Solution] Ignore existing files for new installation.
[Remarks]
If widget was uninstalled (no db information).
Source of problem is that installation/uninstalaltion is not fully transactional
and there is no information that something is to be fixed.
This is just a temporary fix. This is currently losing disc space
for widgets that will not be installed again.
Separate solution (daemon/boot time/...) for fixing unfinshed jobs should be proposed.
[Verification] Build repo and (as in issue):
1) Install a heavy widget.
2) Uninstall the same the widget.
3) While uninstalling the widget, remove battery.
4) Again install the same widget.( on step 3, widget is un-installed)
* Use widget attached in https://bugs.tizendev.org/jira/browse/WGL-580
Change-Id: I3e840cc5c508fe9951c77cabfceb377fb996a927