fix(gatsby): Fix issue where inline static query in page gets added to page data (#24805)
fix(gatsby): Fix issue where inline static query in page gets added to page data (#24805)

* Fix issue where inline static query in page results in page data result

* Set query to empty String when the query is static

* Simplify

* Fix
gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby,gatsbyjs/gatsby