Don't crash with no perfdata on first line.

Check db2.buf is not NULL before dereferencing. Since dbuf_init()
initializes an empty dbuf, the buf member will be NULL until it is
allocated in dbuf_strcat().