Fix showing of dialog fragments from async tasks