If you need to use a raster PNG badge, change the '.svg' to '.png' in the link
fix rounding issue in less
The problem was that sometimes line-height was float (probably because of --size)
And canvas height could happen to be less then 1 that was rounded to 0
When converting canvas to URL with URL.createObjectURL it was passing null
that was causing exception on last slice.
relevant lines covered
hits per line