Don't crash when displaying empty buffers. Fixes #17