LPS-46160 Revert this one condition back to the old style because it breaks in certain situations with our current scripting approach (see LPS-46251)