If you try and run your function on a record that does not have a “Financial Planning Advisor” or another field involved in the function, it will break.
The simplest solution is to require those fields when a Deal is created! Go to the module builder to mark those fields as mandatory.
However, know that it won’t affect records that were already created, only those moving forward.