Fix for broken upgrade when there is no separate @server_localhost and only single @server_master.