Fix crash if current header is null