driver: fix potential segfault in etna_fetch_uniforms