This line must have appeared there by an accident - @zeuko, when fixing #103, postponed saving a copyright transfer into the DB till confirm(). 
This is bound to cause a server error. Please remove this line and stick to:
filledConsents += cd.ojsId -> copyrightTransferRequest