If datePicker.getPopover() is called, and the datePicker's trigger has not been clicked, an error is thrown.
Steps to reproduce:
2. Click anywhere EXCEPT on the input/trigger.
If the bug still exists, you will see the following error in the browser logs:
Uncaught TypeError: Cannot read property 'contains' of undefined