Log: Avoid infinite reload.

Infinite reload occurred if a log file containing errors was opened
without link target. Caused by fixes to back button problems (#1806).
Log: Simpler element header layout.

Motivation is to ease adding new content to header. Expand All button
styles are a bit off, but that's fine because we are going to replace
it with an image anyway.