Not sure how relevant will be my answer after such long time, excuse me for that, here it is:
the CurrentPage is used as base bath for various things in the script. However if it is not set there is a logic to retrieve it. But in some private cases that may fail so it is set upon adding the Online Page Editor on the page. Removing it is on your own risk.