Fix #247 servlet.CommitLogHook.onPostReceive takes minutes

When pushing tags, command.getOldId value is
“0000000000000000000000000000000000000000”.
So, can not get commit logs.
Merge pull request #320 from kunigaku/fix_247

Fix #247 servlet.CommitLogHook.onPostReceive takes minutes