Ignore extra samples when performing sanity checks

Fixes #1120.
Merge pull request #1185 from jrrideout/issue-1120

Fixes #1120