Workaround for Firefox on android

Firefox on android has a bug related to canvas.clearRect. As a result the graphs aren't visible. This works around this issue