Fixed trying to truncate registry key names that did not need truncating. (#701)