fixed RangeError on empty Vector

Change-Id: I910619ba6bb0cab4dad991c1c7484077274579d9