[PMG] stop assuming "currentPhase" variable is at root level

* PMG pages plugins