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

https://bugzilla.redhat.com/show_bug.cgi?id=1173847