[ticket/12928] core.mcp_reports_gather_query_before

Adding the core.mcp_reports_gather_query_before
event to mcp backend.

PHPBB3-12928