gallium/cso: avoid unnecessary null dereference