dialyzer fix related to riak_cs/#658

for https://github.com/basho/riak_cs/issues/658