Fix a bug raising an error without shared_frontend.

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