fix SIGSEGV on rehash-table-alloc failure