Log in as admin,
open the storefront,
click the grey icon in the bottom left corner to open webmaster mode,
choose template editor,
make sure that "Pick templates from page" is enabled,
point to the weight line to pick up the needed template (the right one is "customer/product/details/common_attributes/common.product-attributes.weight.twig")
add "add false" to the if statement like this:
Code:
{% if this.getWeight() != 0 and false %}
Do it under the webmaster mode and the system will create the new theme_tweaker/customer/product/details/common_attributes/common.product-attributes.weight.twig file with custom code. As a result, the upgrade will continue work smoothly for you.
The full list of the all edited templates are presented in the "Look & Feel" -> "Edited templates" section