Fix potential crash when clicking on header/footer in recent list.