Adding check for null cell.

This can occur when creating a timeblock and dragging past the scheduler container, which was causing a number of js errors.