dialog: fix $DLG_timeout printing

(cherry picked from commit dba4810151dd21ade089ac36aacd766db58b9805)