Confine use of STATE_NOTFOUND to macros.