Fixed bug for early stopping condition if objective is negative