ve.getStartAndEndRects returns null for empty rect lists

Currently returns {start:undefined,end:undefined} which is confusing.

Bug: 70770
Change-Id: I80d0632fd8b4b5e716b79966dc412cb9b9caa4ff