Bug Fix #61: Fix Decommission/Recommission Device

Checks to ensure a device domain id is valid before interacting with AD.