filter empty values from metadata before passing to book