Fix listener

Fix #1633

Create a tls listener only if the tlsInfo is not empty and the scheme is HTTPS