Fixed ArrayController failed to recognize row 0 as the insert location

The logic is wrong in the test for last selection since it can be 0
and if there is no selection, [_selectionIndexes lastIndex] returns -1

Fixes #1723