Check BB is non-nil before calling SetInsertPointAtEnd

Fixes #34