Check if there are any pages before calling getPage(), which resolves #2
Merge pull request #7 from dwrj87/dev

Check if there are any pages before calling getPage(), which resolves #2