Fix a bug when deleting an undrawn line.

Small bug fix.