In order to get my patch working with an Assert enabled build I've had to apply the attached patch.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных