newdb: Fix displaying the languages column

Displaying the languages column for a book with no languages
was causing an error.