fix imperfections of existence check of the model class in opPluginInsta...

Backport ticket
https://redmine.openpne.jp/issues/3631
( backport from https://redmine.openpne.jp/issues/1606 )