[#51602555] Fix admin bug related to Contact foreign key on Log entries