refs #7486 Fixed missed ID comparison place