return null for repeat context if no case_name
Merge pull request #3789 from dimagi/repeat

return null for repeat context if no case_name