Defensive programming in DefaultMinMaxMethod

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>