Fix getServer returning undefined variable rather than null if no servers are specified