Correctly handle a case when there are no preloaded apps
am: 28ba2898ce

Change-Id: Iac5083931ff13a81bd631915d198872690252310