catch exception thrown when removed span is null