Fix issue with empty strings resulting in a call to NilClass#freeze