Include "media" attr for module customCSS() (fixes #8219)