isDraft function (content with database) not working anymore when upgrading to kirby4

I’m aware of the issue (Content from a database Error - #8 by texnixe), but haven’t managed to look into it yet.