This may have broke at some point during updates, but as of 06/30/2014 on 2008 R2, I needed to change the function so Userdomain was set to null, and then tested for a value before setting a default value...pain