ns_query_color: ensure we're using the right color space

Reported by Nathaniel Cunningham