When I had this problem, it wasn't dojo nor XPages, it was my Kaspersky
anti-virus that was blocking Popup.js. When I disabled it, or added a rule to trust */dijit/_base/popup.js then
it started working.
Not sure this is your problem, but it's worth trying it out by disabling your anti-virus and popup blockers.