Avoid throwing exceptions in the Decompose function.