SI-7432 Range.min should throw NoSuchElementException on empty range

For consistency, range.max and range.min should throw
NoSuchElementException on an empty range.
SI-7432 add testcases
Merge pull request #2470 from ihji/master

SI-7432 Range.min should throw NoSuchElementException on empty range