Fix exception due to adata being none
Fix exception due to adata being none: a task in lifesci-single-cell-spatial-swe-envs-nocap (Harbor dataset). Title: Fix exception due to adata being none
The task
**Title:** Fix exception due to adata being none
Part of scalingX/lifesci-single-cell-spatial-swe-envs-nocap.