Fix error message when inserting a field in an unsupported location
Ignore empty bibliography fields
Remove field codes for empty bibliographies when refreshing

This happens when a user inserts a bibliography in the middle of a
paragraph and doesn't fully delete it.

Also remove unused code for deleting citations from the document.
Merge branch '4.0'