Bug fix - IllegalStateException when setting the wallpaper