Fixed has_bind() NPE. Probable fix for bug 2878.