Fixed issue with restoring scroll focus in case when dialog creates another dialog