WICKET-5715 Allow setting 'async' attribute on reference <script> elements

(cherry picked from commit eeae249a95926027184b551239b46586a05848fc)