Handle empty permissions for packaged apps (bug 1039067)