Assertion to prevent hash of empty ranges.