Uncaught TypeError: Cannot read property 'dialog' of undefined

I am getting the below error on when a skuid popup is invoked from another pop-up on a page include.

There is main skuid page with 3 tabs. One of the tabs has page include tag to include another skuid page. That included skuid page has row action which opens up a pop-up and that has a global action on it to invoke another pop-up. when that last pop-up is invoked this error comes up and we are not able to close the pop-up on Save&Close

Uncaught TypeError: Cannot read property ‘dialog’ of undefinedskuid.utils.createPopupFromPopupXML @ VM126:10utils.createPopupFromAction @ skuid__SkuidJS:26d.register.showPopup @ skuid__SkuidJS:30f.runActionNode @ skuid__SkuidJS:30f.runActionsNode.m @ skuid__SkuidJS:30f.runActionsNode.m @ skuid__SkuidJS:30f.runActionsNode.m @ skuid__SkuidJS:30f.runActionsNode.m @ skuid__SkuidJS:30f.runActionsNode @ skuid__SkuidJS:30p.init.r.actionsDef.children.each.f @ VM125:4p.init.r.actionsDef.children.each.l.onSelect @ VM125:4c.selectItem @ skuid__SkuidJS:30utils.registerPlugin.$.fn.(anonymous function) @ skuid__SkuidJS:27(anonymous function) @ skuid__SkuidJS:30o.event.dispatch @ skuid__JQuery:3o.event.add.r.handle @ skuid__JQuery:3