fix: avoid err is the controller have no DeviceID

closes: #1989

Reported-by: Walid Nouh <walid.nouh@gmail.com>