Fixed issue where _expunge_all would try to cycle through None variables