Battery cell footprint causes "Footprint has malformed courtyard" (not a closed shape)" error
I am using kicad 5.99 daily builds and I created a simple hello world style of PCB with battery cell component and couple of resistors and leds by following this tutorial: https://www.youtube.com/watch?v=aWO80QdqLBQ
When I run the DRC check for the PCB, I am getting lot of following errors: Footprint has malformed courtyard (not a closed shape) and Footprint has malformed courtyard (self-intersecting)
Description
I would expect that the default footprints dont cause DRC errors.
Steps to reproduceled_helloworld_kicad.tar.bz2
KiCad Version
Own build Kicad 5.99 based on to git hash: kicad/code/kicad@287b0eea