batch() returns err on any null/undef key/value

fixes #19