Fix tags$head + renderUI in IE8, which was broken

Repro case: https://github.com/rstudio/shiny-testapp/tree/master/dynamic_singletons

Reviewed by @jmcphers