Fix a failure in API when the page does not exists

Change-Id: I270247a20d492e60116c1adf020d01bd965565be
Merge "Fix a failure in API when the page does not exists"