refactor(limitTo): no need for all those checks if we use slice

Closes #10537
feat(limitTo): ignore limit when invalid

BREAKING CHANGE: limitTo changed behavior when limit value is invalid.
Instead of returning empty object/array it returns unchanged input.

Closes #10510