Fixed NoMethodError: undefined method `gsub!' for nil:NilClass error
Merge pull request #271 from kimardenmiller/fix-gsub-bug

Fixed NoMethodError: undefined method `gsub!' for nil:NilClass error