core: Suppress dump of certain env keys

Fix a bug in the code that was already meant to do that.

Change-Id: I7148d6e7828a392b5b0b8391931685b40ed3a477
Signed-off-by: Yedidyah Bar David <didi@redhat.com>