crash because secondLargest is null but largest isn't when linear predicting

Signed-off-by: Nepetalactone <tobias.meusburger@gmx.net>