checking for blank value in links pagination count to resolve front end errors