make config --add behave correctly for empty and NULL values