hwaddr: change hwaddr only when valid (bnc#898622)