Directive fix js error when testing undefined with !== operator.