Fix EC_GROUP_new_from_ecparameters to check the base length