Revert "Update ContributionPlugin.php"

Seems that commit introduced more breakage than it fixed

This reverts commit 54babc4b0f672c316fa834c99b5bbfe3aca4f9dc.