I agree with you, and we can indeed directly set the param_info value to NULL, and there are enough comments here to explain. I didn't find anything else to add in your patch.
pgsql-hackers by date:
Соглашаюсь с условиями обработки персональных данных