Added check for bounds in getDataSubVolume().

Earlier bounds were not checked and a Java exception would be the
result of asking for a region outside the dataset.