Correctly handle a case when there are no preloaded apps

Bug: 30415696
Change-Id: Ia1cff342ff7000da3fba580083116441f478491e
1 file changed