Fixed issue where an empty list would return Integer.MIN_VALUE