fix(core): ensure change detection doesn't trigger an infinite loop while not in debug mode