Email notifications display tokens instead of empty space

Your software
My Mautic version is: 4.4.12
My PHP version is: 8.0
My Database type and version is: MariaDB 10.6

Your problem
My problem is: After we setup the email notifications when someone submits a form, any empty field displays the token in the email notification. not an empty space as expected. How can I fix this? Thanks

These errors are showing in the log: nothing in the logs

Steps I have tried to fix the problem:

  1. Setup a form
  2. Setup email notifications for this form
  3. Add the fields to this notification
  4. Test leaving some empty fields in the form