Add check to prevent attribute error when using pager the old way (pre pull request #33)