Fixed potential crash while handling App icons of foreign packages
App icon may be something different than BitmapDrawable (e.g.
GradientDrawable).