Fix production error: "NoMethodError: undefined method `downcase' for nil:NilClass"