pmag_basic_dialogs: fix backwards compatibility problem from using dictionary comprehension