Bug 987400 - Check for validity of wallpaper element to stop unit test f...

...ailure