Issue #3161304 by mglaman, Berdir: Do not bubble cacheable metadata in entity query if there are no conditions