Fix bug in pegasus plugin that publish snapshot task may not run.

RB=182338
R=gogenc,jbetz,si-dev
A=gogenc