(GRAILS-9752) In case when plugin is not inline we stop searching for th...

Sorry, for one more change. There was a problem with previous commit that logic continued to search for a page resource even if plugin is not inline one. This commit should fix it.