Disable usage of endpoint if host is defined

If host is defined for api doc routes, the generated url is wrong. I used this this to fix the issue.

```
app/console router:debug
[...]
backend_dashboard                   ANY      ANY    back.local.com /
nelmio_api_doc_index                GET      ANY    api.local.com  /doc/ 
```