make_texture buglet: when doing check_nan, didn't wrap ImageBuf reference properly

Asymptomatic if the ImageBuf passed in was backed by an ImageCache, but it if were a totally locally-backed buffer, this would cause trouble.