Cherry-pick fixes from feature/9887_fix_custom_dialogs into next

Changes:

    refs #9887. Fix BinMD/SliceMD dialogs.
    (cherry picked from commit a65eaac85fcdaa5c7f05a2092bfb15010772c6a4)