dnd: Fix dnd_get_preferred_action for non-local drops

Corey Berla requested to merge wip/corey/dnd-preferred into master

With non-local drops, when the value is initially NULL, we get warnings because of some of the checks done on a NULL value. This was a regression from 3d17ed25. Return action copy before any check dependent on a dropped value.

Merge request reports