epub backend: don't call function on empty list