Answer is to fix the item below as follows:
def sanitize_redactor(orig_input)
stripped = view_context.strip_tags(orig_input)
if stripped.present? # this prevents from creating empty comments
view_context.sanitize(orig_input, tags: REDACTOR_TAGS, attributes: REDACTOR_ATTRIBUTES)
else
nil
end
end