Fix bug DNN-5157: use TryParse to get the current page param.