Fixed crash when creating a new encrypted tree.