Fix: Javascript error when there's no meta named 'paged'

The error was thrown because the code tried to get an attribute of an undefined element.

This fix solves the issue.