Check for ARB_sampler_objects before dumping its state.

Tested-by: Min-Yu Huang <min-yuhuang@vmware.com>