[12478] Add some safety to rare case of target-selection for unreachable target

Thanks to Atari for reporting and researching this problem
[12479] Enable using table creature_linking with empty table creature_linking_template

Note: Guids are evil!
Close cmangos/issues#148