App crashes when canceling the photo dialog on iOS

Bug report

The app crashes when canceling the photo dialog or the camera screen.

Environment

  • Platform: iOS
  • Platform version: 15.0.2
  • App Version: 4.2.0

How to reproduce

  1. Tap Image icon on the editor toolbar
  2. Tap “Take Photo…” or “Choose from Library…”
  3. Tap “Cancel” button

The app crashes.