As per the current design we are trying to take a ref
for the vdev even when there are no active vdev.
Fix this by adding a NULL check.
CRs-Fixed: 2262983
Change-Id: Iac62c9d0e1138c3d150a179546ad7793ff61e3db
Edayilliam Jayadev%!s(int64=7) %!d(string=hai) anos