handle wallpaper nil condition