Do not try to delete related attribute if it is not defined
Merge pull request #8 from dgaus/master

Fix error when trying to delete nonexisting related attribute