Remove check on undefined module and key

To prevent module and key to be saved with values “undefined”, the
values are normalized to empty strings in the form before getting
passed.