Added defensive code to skip <li> elements with no 'course-lecture-item-resource' <div>s inside.