Test null argument to isBareRepository

Still does not fix inconsistency between JGit and CliGit, but
highlights another place where consistency should be verified.