dont gsub if nil fix 678
Merge pull request #679 from concerto/style_gsub_fix

dont gsub if nil fix 678