fix segfault

when there is no cell, do not try to do stuff based on it.