Fix lxml error when using empty html string