Added check for the existence of a link href attribute pager

Added check for the existence of a link href attribute pager.
We can to use a tag in link pager (for example: back) without attribute href:
```
<a>‹ <span>Back</span></a>