fix segfault when log cb not set