Fix crash if binding is nil, closes #261