fixed as follow error

fixed as follow error:
TypeError: cannot concatenate 'str' and 'NoneType' objects
Merge pull request #7512 from dulangci/v3

fixed error for setup.py