checks if current cell exists before trying to call getStyle