agent: Validate datacenter is valid. Fixes #169.