Handle `collapsed` class on triggers even when manually invoked

Fixes #13636.
Because this line

```js
$(this.options.trigger || '[data-toggle="collapse"]').filter('[href="#' + el.id + '"], [data-target="#' + el.id + '"]')
```
would be considerable longer if the argument were named `element`.