Nvm, Nginx works as expected. I had if section with the same set of rules. Map for real setting empty string by default, so it;s not an option if you need to no set some default setting if conditional is not met.
For those cases you really need to use "if" syntax it seems