converted a method call to try catch syntax

It was throwing an exception in the case of fake plugins, in unit tests, and we don't care we just want that exception ignored.