Convert empty RRSets to wire.

- Enabled saving of empty RRs - only header and 0 RDLENGTH are saved if there are no RDATA in RRSet
- Moved code saving header to wire to an extra function.

Change-Id: Ib1a923e0445a9f8b7fc36ac3f673c41aad53c9c7