hide_cart_widget_if_empty compatibility with fragments. Closes #2642.