Merge "Add null check when loading restricted profile apps."