In BaseRule.baseUpdate our goal is to check if a hostname exists before trying to rename that hostname into something else. This patch fixes an error where the newly generated Hostname was used to check for the existence of the old hostname.