test for nullpointer for no sql in batch (fixed by one of previous
commits); fixes #246;