Added basic input boundary checking for the dateByWorldPopulationRank() function.

I don't know the boundaries and mostly don't understand why things fail, so the error messages are unfortunately often not very helpful.