Fix #247 servlet.CommitLogHook.onPostReceive takes minutes

When pushing tags, command.getOldId value is
“0000000000000000000000000000000000000000”.
So, can not get commit logs.