Keyguard: fix NPE setting lockscreen wallpaper
After boot the view might not be laid out and so getWidth() and
getHeight() return 0 and will cause a NullPointerException in
createBitmap().