SelectWidget: Rewrite #getRelativeSelectableItem

The logic here was massively overgrown, and the comments lied.

Change-Id: Id7ded42582ce6a74336bce9377eb940416a836db
Merge "SelectWidget: Rewrite #getRelativeSelectableItem"