freedreno/ir3: fix potential null ptr deref