patch overcoming the issue of <ul> with no <li>