should `has_bucket` be set after the NULL check? Otherwise, the link will have `has_bucket = RIAK_TRUE` when the function returns  `ERIAK_OUT_OF_MEMORY`.