[FIX] FFCentroided replace exception handling with proper check

In ff centroided the precondition of findNearest was handled by adding a try/catch around it instead of properly checking the pre-condition itself. This commit replaces the try/catch with a corresponding check.

see #908 (partial fix)