backport fixes for ask dialog handling (bnc#820499)
changelog entry
version 2.17.57.3