Revert "Fixed null handling problem in c.p.a.MaxBy and c.p.a.MinBy."

This reverts commit 9d3b686f12e7953fb747e513e5ef02db24169eac.