Fix crash on `/api/listeners` when listener's max_connections is set to a string.