Fixing a reference error in 'list.teardown()', and cleaning up the pagination elements (orphaned)