Only template authentication config if users specified

If the config is added but no username/passwords exist in the file, authentication is impossible as there are no valid credentials.  This adds the same guard that sits around the templating of the passwords file to the authentication section of the proxy.