fix(limitTo): do not convert Infinity to NaN

parseInt(Infinity, 10) will result in NaN, which becomes undesirable when the
expected behaviour is to return the entire input.

I believe this is possibly useful as a way to toggle input limiting based on
certain factors.

Closes #6771