Issue #2854318 by sambonner: Advancedqueue table cleanup - table never cleaned up due to undefined variable