Bug fix

It used to segfault as mergeTarget would be NULL is not merge was possible.