a NULL query ID means that we are in the process of running a query.
In short, I don't think that there's anything to fix here.
pgsql-bugs by date:
Соглашаюсь с условиями обработки персональных данных