hiera: fix logging, caching of non-existence in mwyaml

Change-Id: I311b8e74243d6c2d7030722b26622808bb6abb92
Signed-off-by: Giuseppe Lavagetto <glavagetto@wikimedia.org>