Avoid unnecessary bad downcast (pDev can be VirtualDevice)
Avoid unnecessary bad downcast (pDev can be VirtualDevice)

Change-Id: I9c3a6afea188d04c0d31d5685468b3d45a342840

JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core