d47f185 [frontend] fix casting to str to fix issue with None

Authored and Committed by frostyx 7 years ago
    [frontend] fix casting to str to fix issue with None
    
    str(None) = 'None' so it could never fall to `or` expression