Fix trying to render a CollectionQuery