hashbn: check for NULL result when allocating bin and return an error if it fails...