CGE: Add a safeguard in getPage()