Fix a bug raising an error without shared_frontend.

Though shared_frontend is optional config, if shared_frontend option is not supplied, NoMethodError will be raised without this patch:
```
/vagrant/lib/synapse/haproxy.rb:560:in `generate_config': undefined method `flatten' for nil:NilClass (NoMethodError)
```