Fix getAnnotationsFromRange when starting with an element

Change-Id: I7fde427507e5003f1ed8ab2326dfc12811da10a2
Merge "Fix getAnnotationsFromRange when starting with an element"