refactor(NgModel): simplify some code by using the predefined eqOrNaN()