Fix ebib-fill-index-buffer for empty database files.

- move setting the header line out of the test for edb-keys-list.
- move renaming the buffer and setting the modified flag out of the test
  for edb-keys-list.
Allow exporting of entries in filtered databases.