sequencer: avoid leaking message buffer when refusing to create an empty commit