[Flow] Add own InvalidException (fix #655)

Fix wtf exception #655.

Btw I haven't seen this before, but FlowBundle is using PHPUnit instead of phpspec, weird.