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

As title says. More detailed description in the docstring.