Fix for crash in Pmgit ctor