Only remove animation if it completes successfully

Removing animation without checking if it had completed sometimes broke
the show popUp animation. It meant the animation couldn’t start from
the current state of the presentationLayer because the animation was
always removed. Now the animation is only removed if it completed
without interruption.