Error on validateChanges when option validator is defined with synchronous function

When function defined on validator option is synchronous, function resolve() is executed more one time. I defined a setInterval that check if waitingForValidator variable is zero. If it is zero, it execute the function resolve() followed for a clearInterval.