I believe that since you are pulling the server name from a TextBox, if blank the value will be String.Empty. This may be causing the problem. I have updated the code so that String.Empty values are changed to null. However, until that code is released, try this check:
string server = this.TxtServer.Text;
if (String.Empty == server)
server = null;