ensure we have a valid key and a bucket before proceeding with the riak query