Move the completion block assignment before the presentation of the popover.