Patch to properly detect Drupal namespace within iframe in  media-popups.js