[sr-dev] git:3.1: modules_k/dialog: Improve error handling during dialog creation.