Avoid duplicate parent selectors for nested @extend (#11271)

Change-Id: I58c1e30a7229dd1ad5d0b958f246e9039e3c1f0f