Bug 1027463 - Check for element before clearing. r=kgrandon
Merge pull request #20837 from daleharvey/1027463

Bug 1027463 - Check for element before clearing. r=kgrandon