GEOT-4570, fixing NPE when features array is empty.

Patch contributed by Steve Ikeoka.