Check mergedtruth is in the sequence before modifying it
Merge pull request #4670 from mark-grimes/checkForMergedTruth

Check mergedtruth is in the sequence before modifying it