Not making dropdowns of items affected by depth limit

If the depth is set to 1 for a multi-level menu, the built dropdown ends up unusable as it lacks any children (as expected) and it's uri is set to ``#``.

```
{{ mopa_bootstrap_menu('foo', { depth: 1 }) }}
```

This PR introduces a check for the depth option in addition to the existing check of ``$item->hasChildren()``.