Remove cached reference of project in scmManager.

A reference to the scmManger was not getting cleaned up on project remove. 

Fixes #1924 

@devoncarew PTAL thanks