Reset master activity flag for foreman.

Fixes a bug, in which the flag was not set to zero at each iteration.