Added checking of wither object is a instance of addon or not.
A Class-Cast-Exception would emit if that is not.