fix #4497: preserve nested ampersands during minification (#4500)