Raise exception when trying to run empty flow

Change-Id: If5d379ed81e926bfc53dbc17f7b1cb912b3c226b