mesa/st: fix crash in st_texture_image_copy