Steps to reproduce:
- Create a host or tempate with a macro with no value.
- Re-open its configuration and empty the macro name.
- Press Update.
Result: An error message saying "Invalid macro "": macro is empty." will appear.
Expected: The host or template should be updated without any errors.