Fix bug when fqdn_entry_enabled = false

Fix bug where module does not work if fqdn_entry_enabled is set to false