Fix API crasher due to change in API organization

oldid is no longer around, env.page.id has the key.

Change-Id: I939c052107948b589b6a5d9b24f02730ab629390