stackcache: Fix broken condition in switch statement.