MDL-69086 theme_boost: Improve pendingJs checks for bootstrap