Eliminate race condition registering/unregistering KVO when popup dismissed before presentation animation finished