Allow trailing newline after empty quotes and undef.