Bug fix when receiving empty content

Fixes #26