Allow the script filters to modify the doc ID

Retrieve and use the objectId from the script filter context (if a script filter has been configured).