target/pscsi: Fix NULL pointer dereference in get_device_type