Fix for #2895 ndindex failing

Remove unnecessary check for size argument which causes ndindex to fail.

This is a fix for issue #2895