BUG: sparse: fix issues with 0-size fancy indexing
Merge pull request #3298 from pv/sparse-fix2

BUG: sparse: fix issues with 0-size fancy indexing