added a bit more validation for resource paging for a special case when there is no resource created yet