issue #134

just adds a check for the clearLabels() method. 

Not sure if it is a "fix" persay but it does solve the issue without any significant work, or consequences