Fixed PaginatedCriteria and PersistRouteUrl extension.

They didn't work with null values which is not a critical issue but
fixed.