Fixed: map<>::find() return values were not checked.