Fix ListOfDataPoints for proper execption

If list size == 0 exception is also thrown.