Correct exception raising bug for non global staff accessing missing course git logs

I also noticed some bad logging statements that are corrected.

@dmitchell @nedbat