Fix issue with scaling that occurs sometimes when the HTML5 canvas context isn’t loaded yet