Added processing of `nil` to `highlight` helper method

prevent of error: ```NoMethodError: undefined method `html_safe' for nil:NilClass```