Nifty 50 closes flat as defence stocks rally 3%, CAS divergence eases