Added `raise_on_error` parameter when bulk indexing.

Fixes #48 .