lastObject should not raise exceptions on empty arrayControllers

It fix an error introduced in c97a01947ea05654121cc8211908375637e4a7ac
Merge pull request #2142 from tchak/array-controller-fix

failing test with default arrayController content