Fix #1277, don't unbind draggable events if the grid element is not present