Bibknowledge: get_kbt_items_for_bibedit to support both lxml and libxml2

Back ported Jiri's fix and adapted it to support both `lxml` and `libxml2`. It should please the current users and the new ones setting up _master_ in a virtualenv.

Addresses #1879.