[PATCH 4.14 050/315] media: st-hva: Fix potential NULL pointer dereferences