Fix a bug introduced in v1.20.0 which caused the `synapse_port_db` script to fail.