Fix handling of empty config keys

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>