Error when calling ion-modal from ion-popover

Hi @ldebeasi!
Repo: GitHub - tylerclark/ionicIssues

I get a JavaScript error when closing a modal that was popped by a popover. Screen recording:
issue1

Not a huge deal but I would like to suppress the error.

Thanks!