Wasn't there this "glorious" update that made things with the invisible flag also passable although the passable flag was not set?
I'm not sure about this, so check you DarkWhoppy's hint.
What you could also do is a simple trace instruction (with/without the flag ignore_passable set) to see if the invisible wall is passable or not.