<r:layoutResources/>
should appear twice in your page (or more usually in your layout GSP) - once just before </head>
to render resources with the "head" disposition and again just before </body>
to render the "defer" ones. It's the missing second occurrence that the error message is complaining about, the first isn't really "commented out" (it's inside an HTML comment so it will still be rendered, but its output will be commented out in the resulting HTML).
So you need to "uncomment" the first occurrence and also add the second one, or make sure that your page is using a layout that includes the <r:layoutResources/>
tags at the right places.