MDL-43558 theme_base: Added fix for when javascript is disabled.