fix 'genericpath.py:29:isfile:TypeError: coercing to Unicode: need string or buffer, NoneType found'

https://bugzilla.redhat.com/show_bug.cgi?id=1173847
Merge pull request #3757 from leigh123linux/patch-3

fix 'genericpath.py:29:isfile:TypeError: coercing to Unicode: need strin...