Fix a pegasus plugin regression about null pointer.

RB=176630
R=gogenc,jbetz
A=jbetz