Update multi_domain_helpers.rb

check for valid reffer