added range check before editing link attributes when changing tint color

Reliably got an out of bounds exception under certain circumstances (link in label, label in table cell, then scroll and do some animated view changes). Possibly also fixes #435.