Modified .Last() call to reduce executions.

Moved riakLinks.Last() call outside of foreach to prevent multiple calls to .Last().

Fixes #90