Revert "Fix a bootloop problem when /data/system/usagestats/usage-history.xml is empty. This often occurs after an incomplete reboot/shutdown or battery pull."

This reverts commit e290de5ecdd591d1978af1b0e9b3303696c849ed.

Change-Id: I5c30ef4560bed7c83243517ba8868069f2777613
Fix broken XML parsing idiom.

Code that expected a single top level element in an XML file
was doing something like :

while (type != START_TAG) { next(); }

This would loop forever when the XML being parsed was empty,
where each call to XmlPullParser.next() would return END_DOCUMENT.

bug: https://code.google.com/p/android/issues/detail?id=64173
Change-Id: I7543203e976a8999ae471a6c2d629249a87011bb
Merge remote-tracking branch 'cm/cm-11.0' into cm-11.0