Fix to work before logchain is initialized. Bug #805