fixes #17

error in getPage when no date range was provided