[edit/add asset] improved checks for device linked to another asset

As the title says. More detailed description in the docstring.