etnaviv: don't dereference etna_resource pointer if allocation fails