fix bugs: call get_current_lectures correctly, and make sure the
resources are not None before traversing them (especially from the
preview page)