Fix a bug that caused nulls to be sent as books

gh-6