Fix another stupid bug ECDH detection bug
Again reported by Johan van Selst. Let's see whether this one is okay.