Fix remove unnecessary pop-up.

Success pop up from first part of ng-template is ignored now.

Change-Id: I4aa12d7c844e76c68069f8c4c0f52005a390e575