nine/device: CreateQuery can be called with NULL to check support