Make select_all on query cache accept a Relation without binds.

[fixes #14361]
[related #13886]
Merge pull request #14372 from arthurnn/fix_query_cache_binds

Make select_all on query cache accept a Relation without binds.