Avoids MethodException MethodCountCouldNotFindBest when cert is null