Check if intent can be resolved before starts

Change-Id: Ib9ef20f9480b1ad2093955fffb34298d493015d6
Signed-off-by: Roger Chen <cxr514033970@gmail.com>