Skip empty fields in setdetails

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