Merge "Fix a monkey crash: guard against position -1."