additional null check for grid $destroy event