Fix NA handling in glcm.