fixed a Racecondition with animated Dismissals

Animation with Duration 0 will cause the code to be executed in the next Runloop, therefore you should not call animateWithDuration with a Duration of 0