elasticsearch output: handle bad requests better. fixes #3.