coverity#1242939 Untrusted value as argument

Change-Id: I7d93f9ef4a0821ee3ab9526abd90b8aefe895ded
only checked for new VirtualDevice

Change-Id: I64d7a3c6c0894e231cb0644922675dcce0db89fa