Do not match undefined vars against a regex