Avoid Profile.getInstalled() NullPointerException