Only release the SharedTextureHandle if we actually have one