[SPARK-4256] Make Binary Evaluation Metrics functions defined in cases where there ar...

...e 0 positive or 0 negative examples.
This should probably return 1.0 in order to fit with BinaryClassificationMetrics.pr (which prepends (0.0, 1.0) to the recall-precision curve).