math/ec-exp.h: Fix segfault when base point is at infinity.