Modules which are invariant under idempotents of their envelopes