The check failture occurs while lxml is returning the name as an empty string, which causes bs4 to create a key in the form "prefix:".