Add docpad as parameter to _indexDocument function, was previously undefined