[SCSI] libiscsi: check that command ptr is set before accessing it