fix removing objecttype when plugin datainjection is not activated
Merge pull request #1 from flegastelois/master

fix removing objecttype when plugin datainjection is not activated