When variant is selected in article details the ajax injects #details element inside #details element. This fix prevents it from happening.