I just tried similar steps locally in my 7.22 system without issue. What version are you using?
Could you post more of the stack trace from your custom activity reference?
If you edit your activity to just do a property-set on the source then immediately do another property set to the local property do you see the issue? Also, does the issue occur if you use a different top level page text property?