Inlined extraneous function call from decision_function and added a check that the base estimator has a decision_function attribute