Fix keeponly Jinja filter issue with missing dict keys.

Signed-off-by: Chamon <[luizchamon] [gmail]>