Fix preselection action breakage in rP23830.
target did not always exist, thus raising errors when patrolling or guarding.
Fixes concern raised by @Freagarach at rP23830
Reported By: Freagarach
Reviewed By: Freagarach
Differential Revision: https://code.wildfiregames.com/D2883