[lib] Use getMessageForException instead of e.message in DM related code
Summary:
Use getMessageForException instead of e.message in DM related code in order to avoid bugs when throwing primitives.
Depends on D13757
Test Plan: 1. Run flow checks, run the app, verify that nothing crashes.
Reviewers: kamil, tomek, ashoat
Reviewed By: ashoat
Subscribers: ashoat, tomek
Differential Revision: https://phab.comm.dev/D13761