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