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

...g or buffer, NoneType found'

https://bugzilla.redhat.com/show_bug.cgi?id=1173847