fixes CC-605: disallow start of agent or master for invalid hostid