Provide suitable error message for build indexes that are out of bounds (#121)

PR is attempting to patch #121
Yeah if the throwing the exception would be done by the calling code then you wouldn't need to pass though the constructed URL. However this would been that the same checking would have to be done three times increasing the amount of code, not sure if this is important to you though. :)