Fixed a bug in which Invalid Documents were crashing the connector.