Raise 'Invalid band index' for values <= 0

This should be the default behavior, since this properties are not defined for a dataset.