Add NoneType check for opts in modules.git.init

`opts` should default to '' in `git.init`, as is the case with all other functions in `modules.git`