Use $limit instead.

I don't know why is that test there, maybe because the helper needs to be ```null``` if the default is used, but maybe that line can just read:
```
'limit' => $limit,
```
as in ```2.x```.