if stmt is nil, can't close without panic.

Hello,

Very small issue.
Cause panic after make error, in qbs.go line 157.

Regards.