dnd: Fix dnd_get_preferred_action for non-local drops
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.