Use non blocking dialog for Pastebin result

With this change we no longer need to call the dialog with reactor.callLater.
Also removed useless failure.trap

Closes #5404.
Merge remote-tracking branch 'refs/remotes/ivan/bug/5404_pastebin-dialog-blocks-app' into develop