Fix case where chart loading indicator was not always removed

Fix #630. 

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>