Add if statement to avoid unintentional association to device

This is a work around to prevent the app from ignoring validations when
importing new devices.