Bug 1111583 - Fix appB.detail is undefined error. r=kgrandon

sortUnclassifiedApps can cause an exception if it tries to compare null
apps.