"Banzai::ReferenceParser::BaseParser is executing queries that don't return results"

What does this MR do?

Avoid execute empty queries on Banzai::ReferenceParser::BaseParser when nodes cannot be reference by the current user

Are there points in the code the reviewer needs to double check?

Why was this MR needed?

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #22681 (closed)

Merge request reports