Slight improvements to get_dialog_title and get_state on RFCD