Merge "Enforce ref only for gerrit events that supply a ref"