Popup: Correctly pass position data through to popupbeforeposition handler.
(cherry picked from commit 0f7dd43d45a528ce806bf7ddbd3ab471f991bcfd)