Fix the way theme-compat is written and read back from packages.xml

…o that these settings are restored correctly on device boot.

Change-Id: Ib426465ec05326ea4a8499e3d7d9754b8dc751e3