Fix crash if binding is nil, closes #261

I looked and it seemed like this was the only place needed to make this change, but if I am mistaken let me know.