Fix a (bestValue == -VALUE_INFINITE) assert