Return rails_env if no host is found, instead of failing to send request because no server is set.