Sensex and Nifty End Nearly Flat as Global Tech Weakness Offsets Positive Market Cues