Check bound when doing bindIf. Fixes #1308.