Fix a couple of bugs:
Fix a couple of bugs:

1. Update the issue only once even if the issue is referenced more than once.
2. Set the issue status to In Progress if its status is New and receives a update with the first patch set.

Change-Id: I3d58d18bcddca961c8155e6b0d09a5adb3d10082
Signed-off-by: Wei Ren <88709af9b21626552153fb1f93c3f175914a23ee@smartconn.cc>

renweizhukov/gerrit-hooks