Check if spans exist before clearing line