allow an undef value in directives, and ignore it