check for frame header nil in writer