Possible fix for TISTUD-3989 "Illegal initial capacity" error when reading the index
  - When size is negative, set to size 0.
  - Log details to our logger, not just System.err when size is negative.