Fix for #2895 ndindex failing

Remove unnecessary check for size argument which causes ndindex to fail