fix: newest numpy doesn't like all-indexing non-existing dimension (reported by erg #2233)
Merge remote-tracking branch 'upstream/master'