Refs #4568: fix integer compare from PR #249