(GRAILS-9752) Fixing logic that searches for a page in inline plugin.