Refactor handling of device ID for offline compilation
Refactor handling of device ID for offline compilation

This also cleans up error handling in get_device_address_bits().

KhronosGroup/OpenCL-CTS,KhronosGroup/OpenCL-CTS,KhronosGroup/OpenCL-CTS,KhronosGroup/OpenCL-CTS