Fix case where chart loading indicator was not always removed

A more localized lookup is now performed so even if the HTML is not
rendered in the DOM, it will still be removed.

Signed-off-by: Don Naegely <naegelyd@gmail.com>
Merge pull request #636 from cbmi/issue-630

Fix case where chart loading indicator was not always removed