ISPN-2787 NPE after ReplaceCommand

Assert the expected exception is thrown in MergeDuringReplaceTest