Fix potential NPE in AbstractDevice#equals()