fix potential reference error

Due to deferreds, grid operations can occur after the grid is removed
from the DOM. the absBox function failed in this case