The patch is a proposed resolution to the issue.
To prevent monitor backend from returning invalid result about
Connection 0, it will simply not report information about the connection 0.
Indeed I do understand what your patch does.
But what is the real problem with Connection 0 you're trying to solve?
Note that slapd internally access the database(s). So your monitoring checks
should simply ignore this Connection 0.