[PATCH 5.12 161/700] media: st-hva: Fix potential NULL pointer dereferences