Since someone *might* be using the `pdf_find_bar.js` file without all the components of the full viewer, I've been thinking that it's probably a good idea to add a condition here to prevent any issues. I suggest changing the above line to:
```
if (secondaryToolbar) {
  secondaryToolbar.close();
}
```
This would prevent issues with `secondaryToolbar` being undefined. Also, no need to check whether the toolbar is open or not, since `close()` just returns if the toolbar is already closed, see: https://github.com/mozilla/pdf.js/pull/2792/files#L25R118.