Corrected minor flaw regarding equal classification scores during the calculation of the optimal thresholds (ticket #1383).