Middleware document tree depth exceeded - still x 2

@Falco already wrote a guard for the exact issue:

You are going to need these 3 commits:

Which means either rebuilding against our latest release or waiting for next monthly.