Fixing warning caused by change to consent record

When checking whether a participant's withdraw_letter has been set
before adding a new consent record the participant_id is not always
set.  This was causing warnings in the log.