Correct behaviour of dumper's `skipInvalid` option.