Noisy Quantum Metrology Enhanced by Continuous Nondemolition Measurement