Rails is a module
Make app.helpers.truncate tolerant to null and undefined