skin.py: Avoid GSOD in case of an attrib error

And reduce some code. Thanks atvblack from ATV and the report from Dream1975
http://forums.openpli.org/topic/35785-search-screen-gives-green-screen-of-death/