Fix NPE in slave registration and make default slave name prefix match the dynaslave UDF