Fixed Exceptions with median

- Fixed exception with empty categories, causing EstimateMedian() to try
calculate a median of 0 prices.
- Fixed an exception with categories containing a single auction,
causing EstimateMedian() to reference a median outside the list of
auctions.