Fix regression causing BitmapData#draw to throw an exception