Probably a bug: on-error doesn't get triggered for e-mail sending upon DNS failure

I remember that somewhere I have already discussed this issue and for it to work correctly the variable must be defined first, if I remember correctly…
http://forum.mikrotik.com/t/conditional-not-boolean-bug-with-onerror-new-in-7-13/172543/1