If key/val are not NULL at end of parsing, emit them.