Issue #1480912 by populist: Fixed Wierd things can happen when install tasks modify the conditions that decide when they are run.