I managed to fix the issue on my side with a small modification to the engine source. See answer below.