Check for null before checking bindonce

If `value === null` the undefined check will pass, and `checkBindonce` will
attempt to check a null value, and throw JavaScript errors.