throw exception on empty data for multi insert command

fixes #1372