BS-7735: avoid NPE when there is an invalid conditional pageflow, throw
an IllegalStateException containing more details