Fix problem of adding device without alias

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>