rtpbasepayload: don't write empty extension header
When some header extensions are present but none decides to write any data to the currently processed RTP buffer, remove the extension data section.
Resulting RTP buffer wasn't formatted correctly.