Fixed regression issue with charts failing to render to hidden div. Closes #1460.