Themes: Fix memory corruption from closing asset before XMLTree

Change-Id: Ifa411c18d46f4bb6befa18405ce7daa04de13ccc
Merge pull request #132 from CyanogenMod/cm-11.0

Themes: Fix memory corruption from closing asset before XMLTree