fix the filtering on the grid

fix conditional statement in plugin on "OnDocFormPrerender" event