Dismiss method bug is fixed for case when previous controller in the stack is not a kind of CNViewController
After merge