Plugin was crashing because of wrong assumption that the object params is always NSArray. Therefore I added a condition which checks whether it is really a NSArray instance. In case it is not, a new NSArray object with the old params is initialised.