Do not recompute hashes when a generated target is notified dirty.

Test Plan: Run the tests

Reviewers: NicolasDP

Reviewed By: NicolasDP

Maniphest Tasks: T39

Differential Revision: http://91.121.199.76/D51