issue #2: clear last rendered direction when last waypoint is removed.